From: Adrian Vovk Date: Tue, 20 Jan 2026 05:09:29 +0000 (-0500) Subject: endSessionDialog: Immediately return from Open() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~12 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=66febe7d834e43c6e300e04d68427d0e1ea6111e;p=gnome-shell.git endSessionDialog: Immediately return from Open() There's no need to wait for the dialog to finish fading in before we can return from Open(). The code, as it was before, would break dialog updates: the dialog was already open, so the signal would never get emitted, so the method would never return, and so gnome-session would remain blocked waiting for a return value that will never come. Part-of: (cherry picked from commit 6b482e1720cb373b8a66146f16ffc9d2e49a7c52) --- diff --git a/js/ui/endSessionDialog.js b/js/ui/endSessionDialog.js index 7be307023..2e69da390 100644 --- a/js/ui/endSessionDialog.js +++ b/js/ui/endSessionDialog.js @@ -785,10 +785,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog { this._sync(); - let signalId = this.connect('opened', () => { - invocation.return_value(null); - this.disconnect(signalId); - }); + invocation.return_value(null); } Close(_parameters, _invocation) {